package com.qf.crm.dao.impl;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

import com.qf.crm.dao.ProductDao;
import com.qf.crm.dao.base.BaseDao;
import com.qf.crm.entity.Product;

public class ProductDaoImpl extends BaseDao<Product> implements ProductDao{

	@Override
	public List<Product> getProductList(Connection connection, String sql, Class<Product> clazz, Object... args) throws InstantiationException, IllegalAccessException, NoSuchFieldException, SecurityException, SQLException {
		return getList(connection, sql, clazz, args);
	}

	@Override
	public Product getProduct(Connection connection, String sql, Class<Product> clazz, Object... args) throws InstantiationException, IllegalAccessException, NoSuchFieldException, SecurityException, SQLException {
		return get(connection, sql, Product.class, args);
	}

}
